//
//  ChangePwdByEmailRequest.m
//  DYLYJ
//
//  Created by JM on 15/12/11.
//  Copyright © 2015年 JM. All rights reserved.
//

#import "ChangePwdByEmailRequest.h"

@implementation ChangePwdByEmailRequest
- (void)didRealRequest {
    [[XPGWifiSDK sharedInstance] changeUserPasswordByEmail:self.DY_email];
}

- (void)XPGWifiSDK:(XPGWifiSDK *)wifiSDK didChangeUserPassword:(NSNumber *)error errorMessage:(NSString *)errorMessage {
    if(error.integerValue == XPGWifiError_NONE) {
        ChangePwdByEmailResponse* response = [ChangePwdByEmailResponse response];
        self.block(response,nil);
        
    }
    else
    {
        self.block(nil,[NSError dy_errorWithErrCode:error.integerValue errMessage:errorMessage]);
    }
    [super superHandelResponse];
}

@end

@implementation ChangePwdByEmailResponse


@end